Check the return value of domain_lookup_by_name_or_id_nr for None (i.e. no
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 30 Mar 2006 10:54:07 +0000 (11:54 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 30 Mar 2006 10:54:07 +0000 (11:54 +0100)
commit51260a849cd9d952e20ba2a2094427aad8bffbfd
tree5ca0b231d50eac5f6f6eb7afd3efc13efaa2927d
parentc705b05a310d753c900aa76fff6f3e9cb3e37769
Check the return value of domain_lookup_by_name_or_id_nr for None (i.e. no
such domain) inside each of the public-facing functions.  This fixes the
Internal errors seen when specifying an invalid domain.

domain_pincpu takes cpumap, which is a list, not a string, so there's no need
to try and split it up.  Fixes xm vcpu-pin.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomain.py